<template>
  <div>
    <div class="topBackGround">
      <img
        src="https://xystcdn.xydec.com.cn/uploads/case/20220812/5c01ef85a3c8c1f1a14d93c85486ccb4.jpg"
        alt=""
      />
      <div class="titleContainer">
        <span>三盛璞悦湾陈总雅居</span>
        <span>简约-90平米-三居</span>
      </div>
      <div class="designer">
        <div class="avatar">
          <img
            src="https://xystcdn.xydec.com.cn/upload/20190329/36980fa4b6e80802bb267d2b87425bd4.jpg"
            alt=""
          />
          <div class="designerInfo">
            <span>陶能胜</span>
            <span class="logo"
              >首席设计师
              <img
                src="https://xystcdn.xydec.com.cn/static/mxy/images/v.png?v=2"
                alt=""
              />
            </span>
          </div>
        </div>
        <mt-button size="small" type="danger" @click="toAppointment()"
          >点击预约</mt-button
        >
      </div>
      <div class="instructions">
        <div class="title">设计说明</div>
        <div class="content">
          <span>案例名称：三盛璞悦湾陈总雅居</span>
          <span>设计师：陶能胜</span>
          <span>设计风格：简约</span>
          <span>面积：90平米</span>
          <span>户型：三居</span>
          <span>工程造价：12万</span>
          <span
            >设计说明：生活经验告诉我们，喜好是种直觉，不须练习，也不须拐弯抹角。拿掉多余的装饰，让家变得更加宽敞舒适，腾出来的空间，是为爱预留的位置。</span
          >
        </div>
      </div>
      <div class="sample">
        <div>客厅</div>
        <img
          preview
          src="https://xystcdn.xydec.com.cn/uploads/case/20220812/18324c168df0c4e958db04dd480c9a7c.jpg"
        />
      </div>
      <div class="sample">
        <div>卧室</div>
        <img
          src="https://xystcdn.xydec.com.cn/uploads/case/20220812/da9d78cf6a5e67cf09ff4843cc3484d8.jpg"
        />
        <img
          src="https://xystcdn.xydec.com.cn/uploads/case/20220812/c1291d6962fe5a9e1586c1ea29c117f2.jpg"
        />
        <img
          src="https://xystcdn.xydec.com.cn/uploads/case/20220812/95c177873c9e44ec5e51d54c5c89741e.jpg"
        />
      </div>
      <div class="choice">
        <mt-button plain type="primary">上一套案例</mt-button>
        <mt-button plain type="primary">下一套案例</mt-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    toAppointment() {
      alert('你好,我是小可爱陶晗钰')
    },
  },
}
</script>

<style lang="scss" scoped>
.topBackGround {
  width: 390px;
  height: 216.6px;
  position: relative;
  img {
    width: 100%;
    height: 100%;
  }
  .titleContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    bottom: 38px;
    left: 10px;
    color: white;
    span:nth-child(1) {
      font-size: 20px;
    }
    span:nth-child(2) {
      font-size: 18px;
    }
  }
  .designer {
    width: 80%;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    display: flex;
    align-items: center;
    justify-content: space-around;
    align-content: space-around;
    height: 70px;
    position: relative;
    bottom: 38px;
    .avatar {
      height: 60px;
      display: flex;
      align-items: center;
      img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
      }
      .designerInfo {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        .logo {
          display: flex;
        }
        span > img {
          width: 10px;
          height: 10px;
        }
        span:nth-child(1) {
          font-size: 20px;
          font-weight: bold;
          font-family: '楷体';
        }
        span:nth-child(2) {
          font-size: 15px;
          font-weight: bold;
          font-family: '楷体';
        }
      }
    }
  }
  .instructions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 90%;
    margin: 0 auto;
    .title {
      font-size: 20px;
      font-family: '楷体';
      border-bottom: solid 1px red;
    }
    .content {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
      span {
        padding: 5px;
      }
    }
  }

  .sample {
    width: 90%;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 22px;
    div {
      border-bottom: 1px solid red;
    }
    img {
      width: 100%;
      margin: 5px 0;
    }
  }
  .choice {
    width: 90%;
    margin: 10px auto;
    height: 100px;
    display: flex;
    justify-content: space-around;
  }
}
</style>
